import store from '@/store'

export default {
    inserted(el, binding) {
        let { value } = binding;
        let permissions = store.getters.userStringPermissions; 

        if(permissions.includes(value)) return;

        el.parentNode && el.parentNode.removeChild(el)
    }
}